package com.jxl.springboot.game.web.constant;

/**
 * 响应常量类
 *
 * @author 江雪林
 * @create 2021-03-31
 */
public class Constant {
    /**
     * uid 标识
     */
    public static final String U_ID = "UID";
    /**
     * redis 标识
     */
    public static final String R_ID = "RID";
    /**
     * 响应信息标识
     */
    public static final String MASSAGE = "msg";
    /**
     * 60 秒
     */
    public static final Integer SENDS = 60;
    /**
     * 当前项目路径
     */
    public static final String PATH = "/";
    /**
     * 请求成功
     */
    public static final Integer SUCCESS = 200;
    /**
     * 请求失败
     */
    public static final Integer UNSUCCESS = 303;
    /**
     * 请求参数错误
     */
    public static final Integer ERROR = 401;
    /**
     * 请求权限
     */
    public static final Integer NO_POWER = 403;
    /**
     * session 存储用户的 key
     */
    public static final String SESSION_USER = "SESSION_USER";
    /**
     * 用户名已存在
     */
    public static final String USER_EXSIST = "register unsuccessful that username is exsisted";
    /**
     * 参数错误
     */
    public static final String PARAM_ERROR = "the param is error";
    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "login successful";
    /**
     * 登录失败
     */
    public static final String LOGIN_UNSUCCESS = "login unsuccessful";
    /**
     * 修改成功
     */
    public static final String UPDATE_SUCCESS = "update successful";
    /**
     * 修改失败
     */
    public static final String UPDATE_UNSUCCESS = "update unsuccessful";
    /**
     * 注册失败
     */
    public static final String REGISTER_UNSUCCESS = "register unsuccessful";
    /**
     * 注册成功
     */
    public static final String REGISTER_SUCCESS = "register successful";
    /**
     * 用户登录验证失败
     */
    public static final String VALID_USER_LOGIN = "unseccessful that user is not login";
    /**
     * 权限验证成功
     */
    public static final String VALID_POWER_SUCCESS = "valid power seccessful";
    /**
     * 权限验证失败
     */
    public static final String VALID_POWER_UNSUCCESS = "valid power unseccessful that user hasn't power of access";
    /**
     * 游戏类型
     */
    public static final String GAME_TYPE = "types";
    /**
     * 成功响应
     */
    public static final String OK = "Response OK";
    /**
     * 响应失败
     */
    public static final String FAIL = "Response is failed";
    /**
     * 响应编码格式
     */
    public static final String CONTENT_TYPE = "text/html;chatset=utf-8";
}
